import VueRouter from 'vue-router';

import Index from '@/pages/index/index.vue';
import Build from '@/pages/build/build.vue';
import CreateProject from '@/pages/create-project/create-project.vue';
import ProjectList from '@/pages/project-list/project-list.vue';

const routes = [
    { 
        path: '/index',
        component: Index
    },
    { 
        path: '/build',
        component: Build
    },
    {
        path: '/create-project',
        component: CreateProject
    },
    {
        path: '/project-list',
        component: ProjectList
    },    
    { 
        path: '',
        redirect: '/index'
    }
];

const router = new VueRouter({
    routes
});

export default router;
